﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SignUp.aspx.cs" Inherits="CV_Projekt.FormSignUp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MenuContent" runat="server">
    <p>
        <br />
    </p>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="StyleSheets/SignUp.css" rel="stylesheet" />
    <div id="SignUpDiv">
        Skapa Konto!<br />
         <asp:Label ID="LabelUserExist" runat="server" ForeColor="Red"></asp:Label>
        <br />
        <label>Användarnamn</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxUserName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorUserName" runat="server" ControlToValidate="TextBoxUserName" ErrorMessage="Användarnamn saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Lösenord</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxPassword" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server" ControlToValidate="TextBoxPassword" ErrorMessage="Lösenord saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Förnamn</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxFirstName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorFirstName" runat="server" ControlToValidate="TextBoxFirstName" ErrorMessage="Förnamn saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Efternamn</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxLastName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorLastName" runat="server" ControlToValidate="TextBoxLastName" ErrorMessage="Efternamn saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Personnummer</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxSocialSecurityNumber" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxSocialSecurityNumber" ErrorMessage="Personnummer saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Gatuadress</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxStreetAddress" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorStreetAddress" runat="server" ControlToValidate="TextBoxStreetAddress" ErrorMessage="Gatuadress saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Postnummer</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxPostalCode" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPostalCode" runat="server" ControlToValidate="TextBoxPostalCode" ErrorMessage="Postnummer saknas">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxPostalCode" ErrorMessage="Fel postnummer" ForeColor="Red" ValidationExpression="\d{5}|\d{3} \d{2}">*</asp:RegularExpressionValidator>
        <br />
        <label>Stad</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxCity" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorCity" runat="server" ControlToValidate="TextBoxCity" ErrorMessage="Stad saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Country</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxCountry" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorCountry" runat="server" ControlToValidate="TextBoxCountry" ErrorMessage="Land saknas">*</asp:RequiredFieldValidator>
        <br />
        <label>Email</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxEmail" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorEmail" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Email saknas">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Fel Email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        <br />
        <label>Telefon</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxPhone" runat="server" TextMode="Phone"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPhone" runat="server" ControlToValidate="TextBoxPhone" ErrorMessage="Telefonnummer saknas">*</asp:RequiredFieldValidator>
        <br />
        <asp:Button ID="ButtonSignUp" CssClass="ButtonSignUp" runat="server" Text="Skapa konto" Width="83px" OnClick="Button1_Click" />
        <br />
        <asp:ValidationSummary ID="ValidationSummarySignIn" runat="server" />
        <br />
    </div>
</asp:Content>
